package com.xingchi.tornado.dict.model.dto;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import javax.validation.constraints.NotBlank;

/**
 * 添加字典分组模型
 *
 * @author xiaoya
 * @date 2025/6/17 14:14
 */
@Data
@Schema(name = "字典分组编辑模型", description = "字典分组编辑模型")
public class DictGroupEditDTO {

    @Schema(description = "id")
    @NotBlank(message = "id不能为空")
    private Long id;

    @Schema(description = "分组code")
    @NotBlank(message = "分组code不能为空")
    private String code;

    @Schema(description = "分组名称")
    @NotBlank(message = "分组名称不能为空")
    private String name;

    @Schema(description = "分组描述")
    private String desc;

    @Schema(description = "排序")
    private Integer sort;

    @Schema(description = "字典来源1、枚举扫描; 2、系统添加")
    private Integer source;

}
